#!/usr/bin/env python
#-*- coding:utf-8 -*-
'''
   seekFile.py
   autor wenzhui
'''
num = raw_input('Enter a number which you want to get >> ')
fname = raw_input('Enter anumber which you want to access file >> ')

try:
    num = int(num)
    if len(fname) <= 0:
        print 'file name is not null , please restart  programm '
    with open(fname, 'r') as f:
        con = None
        index = 0
        for line in f:
           index += 1
           if index == num:
               con = line
               break
        print "The content of %d line is : %s " % (num, con)
except Exception, e:
    print e
